<?php
namespace Home\Controller;
use Think\Controller;
class CommentController extends Controller {
    public function comment()
    {
        $data = I('get.');
        //$info = D('Comment')->where('good_id='.$data['good_id']);
        $sql = "select c.id,u.nickname,c.comment,c.time,c.star,cp.img1,cp.img2,cp.img3 from wlg_comment c LEFT JOIN wlg_comment_picture cp ON c.imgs_id=cp.id LEFT JOIN wlg_users u ON c.user_id=u.id where c.good_id".$data['good_id'].";";
        $info = M()->query($sql);
        var_dump($info);
    }
    public function add_comment()
    {

    }
}